﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace DAL
{
    public class SearchHelper
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="proName">存储过程名称</param>
        /// <param name="keyWord">关键字</param>
        /// <returns></returns>
        public static SqlDataReader FindInfos(string proName, string keyWord)
        {
            SqlDataReader sdr = SqlHelper.ExecuteReader(CommandType.StoredProcedure, proName,
                new SqlParameter("@keyWord", keyWord));

            return sdr;
        }
    }
}
